home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / COMAL / A-COMAL Series / (k)aac.d64 / keyaddress.func < prev    next >
Text File  |  2007-02-28  |  238b  |  11 lines

  1. 9000 //
  2. 9010 FUNC KEYADDRESS(NUM) CLOSED
  3. 9020 DIM NUMBER$ OF 9, S$ OF 1
  4. 9030 NUMBER$:="013572468"
  5. 9040 S$:=CHR$(48+NUM)
  6. 9050 IF S$ IN NUMBER$ THEN
  7. 9060 RETURN 50500+((S$ IN NUMBER$)-1)*10
  8. 9070 ENDIF 
  9. 9080 ERROR(3)
  10. 9090 ENDFUNC KEYADDRESS
  11.